package com.jic.member.mapper;


import com.jic.member.entity.MememberIntegralGiveConsume;
import com.jic.member.response.MememberIntegralRuleResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员积分注册赠送-消费抵现表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-04-02 03:31:41
 */
@Mapper
public interface  MememberIntegralGiveConsumeMapper {

    long insert(MememberIntegralGiveConsume mememberIntegralGiveConsume);

    long delete(Long id);

    long update(MememberIntegralGiveConsume mememberIntegralGiveConsume);

    MememberIntegralGiveConsume queryByPrimaryKey(Long id);

    List<MememberIntegralGiveConsume> query(MememberIntegralGiveConsume mememberIntegralGiveConsume);

    List<MememberIntegralGiveConsume> queryPage(@Param("startIndex") int startIndex , @Param("limit") int limit , @Param("mememberIntegralGiveConsume") MememberIntegralGiveConsume mememberIntegralGiveConsume);

    long queryPageCount(MememberIntegralGiveConsume mememberIntegralGiveConsume);

    MememberIntegralRuleResponse querymememberIntegralGiveConsumeByRuleId(@Param("ruleId") Long ruleId);

    MememberIntegralGiveConsume queryByRuleId(@Param("ruleId") Long ruleId);
}
